import request from '@/utils/request'
//添加作家咨询/advisory/addAdvisory
export function addAdvisory(data) {
    return request({
        url: '/advisory/addAdvisory',
        method: 'post',
        data
    })
}
//查询作者咨询分页列表/advisory/selectAdvisoryPage
export function selectAdvisoryPage(data) {
    return request({
        url: '/advisory/selectAdvisoryPage',
        method: 'post',
        data
    })
}
//查询作家咨询消息类型列表/advisory/messageType
export function messageType() {
    return request({
        url: '/advisory/messageType',
        method: 'get',
    })
}
//作者删除咨询/advisory/deleteAdvisory
export function deleteAdvisory(data) {
    return request({
        url: '/advisory/deleteAdvisory',
        method: 'DELETE',
        data
    })
}
//作者咨询详情/advisory/selectAdvisory
export function selectAdvisory(data) {
    return request({
        url: '/advisory/selectAdvisory',
        method: 'post',
        data
    })
}
//查询作者咨询回复列表/advisory/selectAdvisoryReplyPage
export function selectAdvisoryReplyPage(data) {
    return request({
        url: '/advisory/selectAdvisoryReplyPage',
        method: 'post',
        data
    })
}
//作者添加咨询回复/advisory/addAuthorAdvisoryReply
export function addAuthorAdvisoryReply(data) {
    return request({
        url: '/advisory/addAuthorAdvisoryReply',
        method: 'post',
        data
    })
}
//查询合同模版列表/contractTemplate
export function contractTemplate() {
    return request({
        url: '/contractTemplate',
        method: 'get',
    })
}
//作者标记消息为已读状态
export function updateMessageIsRead(data) {
    return request({
        url: '/advisory/updateMessageIsRead',
        method: 'put',
        data
    })
}